#include "ArrayListUtil.hpp"

bool
ArrayListUtil::checkThatElementsAreInAscendingOrder(OwnCollections::ArrayList<int>& vector) {
  int count = vector.getCount();

  for( int i = 0; i < count - 1; i++) {
      if( vector.get(i) > vector.get(i + 1) ) {
          return false;
      }
  }

  return true;
}


